package com.ca.ridersclubapplication.view.input;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.ImageView;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.constraintlayout.widget.ConstraintLayout;

import com.ca.ridersclubapplication.R;

public class PaperEditImage extends ConstraintLayout {

    public ImageView iv;
    public ConstraintLayout deleteButton;

    public PaperEditImage(@NonNull Context context) {
        super(context);
        initView(context);
    }

    public PaperEditImage(@NonNull Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
        initView(context);
    }

    public PaperEditImage(@NonNull Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        initView(context);
    }

    private void initView(Context context) {

        View view = LayoutInflater.from(context).inflate(R.layout.paper_edit_image_item, this);
        iv = view.findViewById(R.id.iv);
        deleteButton = view.findViewById(R.id.cl_delete);

        deleteButton.setOnClickListener(v -> {});
    }
}
